#ifndef __BEEP_H
#define	__BEEP_H

/* Includes -----------------------*/
#include "cx32l003_beeper.h"
#include "cx32l003_gpio.h"
#include "cx32l003_rcc.h"


#define DEBUG_BEEPx           BEEPER
#define DEBUG_BEEP_DIV        0x07CF
#define DEBUG_BEEP_SEL        0x00020000
#define DEBUG_BEEP_EN         ENABLE
#define DEBUG_BEEP_CLK        0x00300000


#define DEBUG_BEEP_GPIOx        GPIOD
#define DEBUG_BEEP_PIN          GPIO_Pin_4
#define DEBUG_BEEP_PIN_SOURCE   GPIO_PinSource4
#define DEBUG_BEEP_AF_VALUE          GPIO_AF_BEEP_PD4


#define  ON     1
#define  OFF    0

/*function defion*/
void BEEP_GPIO_Config(void);
void BEEPER_Switch(uint8_t SVALUE);

					
#endif /* __BEEP_H */
